package com.woniuxy.project115.kaer.mall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 订单详情表
 * </p>
 *
 * @author lyc
 * @since 2025年02月17日
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("product_order_info")
public class ProductOrderInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单编号
     */
    @TableId(value = "order_num", type = IdType.AUTO)
    private String orderNum;

    /**
     * 购买人的iid
     */
    @TableField("user_id")
    private Integer userId;

    @TableField("address_info")
    private String addressInfo;

    @TableField("receiver_name")
    private String receiverName;

    @TableField("phone")
    private String phone;

    /**
     * 订单总价
     */
    @TableField("total_price")
    private BigDecimal totalPrice;

    /**
     * 下单时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 支付时间
     */
    @TableField("pay_time")
    private LocalDateTime payTime;

    /**
     * 已取消，待评价，已完成
     */
    @TableField("order_state")
    private String orderState;

    /**
     * 支付状态(未支付 已支付 退款中 已退款)
     */
    @TableField("pay_state")
    private String payState;
    /**
     * 订单备注
     */
    @TableField("remarks")
    private String remarks;
    @TableField("real_pay")
    private BigDecimal realPay;


}
